package com.zzzy.sys.vo.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DeptAddReq {

    @Schema(description = "部门名称,不能超过100个字符")
    @Length(max = 100, message = "部门名称不能超过100个字符")
    @NotBlank(message = "部门名称不能空")
    private String name;

    @Schema(description = "上级部门id")
    @NotNull(message = "上级部门不能为空")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "负责人")
    private String leaderUser;
}
